package main

/*
zerolog
*/

import (
	"fmt"
	"github.com/rs/zerolog"
	"github.com/rs/zerolog/log"
)

type LogHook struct{}

func (hook LogHook) Run(e *zerolog.Event, level zerolog.Level, msg string) {
	fmt.Println(msg)
}

func main() {
	log.Logger = log.Hook(LogHook{})
	log.Info().Msg("hello world")
	log.Debug().
		Str("name", "xy").
		Str("name", "xy").
		Float64("height", 100.0).
		Msg("create object")
}
